package com.example.routeplansystem.entity.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.routeplansystem.entity.po.QuestionNodePojo;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 唐海军
 * @create 2022-12-03 21:10
 */

@Data
@NoArgsConstructor
public class QuestionNodeExcelBO {
    @ExcelProperty("客户id")
    private Integer customerId;
    @ExcelProperty("客户名称")
    private String customerName;
    @ExcelProperty("需求量")
    private float demand;

    public QuestionNodePojo toQuestionNodePojo(int questionId){
        return new QuestionNodePojo(null,questionId,customerId,0,demand);
    }
}
